/*
 * jxUtils Project (2014)
 * 
 * by Denilson Edinaldo Pinto
 * 
 * LGPL
 * Copyright (C) 2014
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.jxUtils.i18n;

import java.util.Locale;

/**
 * @author Denilson Edinaldo Pinto
 * @porject jxUtils
 * @package org.jxUtils.i18n
 * @date 08/02/2014 - 08:40:45
 */
public final class ParameterMessages extends Localizator {
	
	private static final String className = ParameterMessages.class.getSimpleName().replace("Messages", "");
	
	/**
	 * 
	 */
	public ParameterMessages() {
	
		this(Locale.getDefault());
	}
	
	/**
	 * @param locale
	 */
	public ParameterMessages(final Locale locale) {
	
		super(PACKAGE_NAME + ".messages." + className, locale);
	}
	
	/**
	 * @param minIndex
	 * @param maxIndex
	 * @return i18n message
	 */
	public String invalidRangeIndex(final double minIndex, final double maxIndex) {
	
		return getMessage("invalid.range.$MinIndex.$MaxIndex", minIndex, maxIndex);
	}
	
	/**
	 * @param parameterName
	 * @return i18n message
	 */
	public String parameterIsAbsoluteEmpty(final String parameterName) {
	
		return getMessage("$parameter.isAbsoluteEmpty", parameterName);
	}
	
	/**
	 * @param parameterName
	 * @return i18n message
	 */
	public String parameterIsEmpty(final String parameterName) {
	
		return getMessage("$parameter.isEmpty", parameterName);
	}
	
	/**
	 * @param parameterName
	 * @return i18n message
	 */
	public String parameterIsNull(final String parameterName) {
	
		return getMessage("$parameter.isNull", parameterName);
	}
	
	/**
	 * @param parameterName
	 * @return i18n message
	 */
	public String parameterIsNullOrEmpty(final String parameterName) {
	
		return getMessage("$parameter.isNullOrEmpty", parameterName);
	}
}
